import { OccType } from "core/typeDefine/typeDefine"

export class GodNodeModel {
    type: OccType//属性所给英雄类型
    attriNames: any[]
    lvl: number
    lock: boolean
    constructor(opts: any = {}) {
        this.type = opts.type || 0
        this.attriNames = opts.attriNames || []
        this.lvl = opts.lvl || 0
        this.lock = opts.lock || false
    }
}

export class GodAttrisModel {
    gold: number
    exp: number
    constructor(opts: any = {}) {
        this.gold = opts.gold || 0
        this.exp = opts.exp || 0
    }
}

export class GodModel {
    lvl: number
    nodeLvls: any
    activeIndex: number
    list: GodNodeModel[][]
    lockAmount: number//解锁情况
    unlockNodes: number[]
    // resourceAttris: GodAttrisModel
    strLvl: number//强化等级
    strList: number[][]//强化神格
    constructor(opts: any = {}) {
        this.lvl = opts.lvl || 0
        this.nodeLvls = opts.nodeLvls || {}
        this.activeIndex = opts.activeIndex || 0
        this.list = opts.list || []
        this.lockAmount = opts.lockAmount || 0
        this.unlockNodes = opts.unlockNodes || []
        // this.resourceAttris = new GodAttrisModel(opts.resourceAttris)
        this.strLvl = opts.strLvl || 0
        this.strList = opts.strList || []
    }
}